package cn.tedu.personal_patient.information.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Patient {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String name;
    private String number;
    private String birth;
    private String phone;
    private Integer gender;
    private String background_disease;
    private String emergency_contact_phone;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

}
